package com.lzx.orderserver.controller;

import com.lzx.orderserver.model.Borrow;
import com.lzx.commons.entity.Result;
import com.lzx.commons.utils.ResultUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wb.liuzhengxing
 * @version v1.0
 * @package com.lzx.orderserver.controller
 * @data 2022/8/25 16:48
 */
@RestController
@RequestMapping("/borrow")
public class BorrowController {

    @PostMapping("/save")
    public Result save(@RequestBody Borrow borrow) {
        System.out.println(borrow.toString());
        return ResultUtil.success(borrow);
    }
}
